﻿<cfsilent>
	<cfscript>
	
		sql = "SELECT a.institute_id,
					  a.institute_name,
            		  a.institute_short,
					  a.institute_english,
					  a.institute_pyidx,
					  a.classification
				FROM t_institute a 
				WHERE a.institute_id = :insId ";
		queryObj = new Query( datasource=application.dnsSlave ); 
		queryObj.addParam( name="insId", value=event.getArg("DepID"), cfsqltype="cf_sql_varchar" );
		rs_department= queryObj.execute( sql=sql ).getResult();
		
		sql = "SELECT  a.classification,
					   a.classification_name
				FROM t_institute_type a ";
		queryObj = new Query( datasource=application.dnsSlave ); 
		rs_type= queryObj.execute( sql=sql ).getResult();
		event.setArg("pageTitle", "教学运行基础数据 - 行政建制 - 校内单位 - " & rs_department.institute_name);

		targetArgs = structNew();
		structInsert(targetArgs, "DepID", rs_department.institute_id, true);

	</cfscript>
</cfsilent>

<div id="headArea">
	<div class="uiHeader uiHeaderWithImage ptm">
		<div class="clearfix uiHeaderTop">
			<div class="uiHeaderActions rfloat">
				<a class="uiButton" href="<cfoutput>#buildURL('organizeAdministration')#</cfoutput>"><i class="mrs img btnPublish"></i><span class="uiButtonText">二级学院行政建制</span></a>
			</div>
			<div>
				<h2 class="uiHeaderTitle">
					<i class="uiHeaderImage img icon16x16 card"></i>校内其他部门概况
				</h2>
			</div>
		</div>
	</div>
</div>

<div class="UIElement">
	<ul class="senateFirstPage">
		<li>
			<div class="clearfix" id="summary">
				<div class="UItab">
					<div class="tabLables">
						<span id="labBaseInfo" tabTarget="BaseInfo">部门基础信息</span>
					</div>
				</div>
				
				<div id="BaseInfo" class="tabContentBox">
					
					<form id="formEdit" onSubmit="javascript:return processVerfiyForm('formEdit');" class="formWrapper" method="post" action="<cfoutput>#buildURL('departmentOtherUpdateDo')#</cfoutput>">
						
						<input type="hidden" name="InstituteID" value="<cfoutput>#rs_department.institute_id#</cfoutput>" />
						
						<div class="label">
							<span class="req">*</span><b>部门正式名称</b>
							<input name="InstituteName" id="InstituteName" type="text" class="typeText" verification="required" maxlength="50" value="<cfoutput>#event.getArg('InstituteName', rs_department.institute_name)#</cfoutput>" />
						</div>

						<div class="label">
							<span class="req">*</span><b>简称</b>
							<input name="InstituteShortName" id="InstituteShortName" type="text" class="typeTextTiny" verification="required" maxlength="6" value="<cfoutput>#event.getArg('InstituteShortName', rs_department.institute_short)#</cfoutput>" />
						</div>
						
						<div class="label">
							<b>单位类别</b>
							<select name="Classification">
                                <cfloop query="rs_type" >
									<option <cfif rs_type.classification eq event.getArg("Classification", rs_department.classification)>selected="selected"</cfif> value="<cfoutput>#rs_type.classification#</cfoutput>"><cfoutput>#rs_type.classification_name#</cfoutput></option>
								</cfloop>
							</select>
						</div>
						
						<hr/>
						
						<div class="label">
							<b>英文名称</b>
							<input name="InstituteEnglish" id="InstituteEnglish" type="text" class="typeText typeEnglish" maxlength="180" value="<cfoutput>#event.getArg('InstituteEnglish', rs_department.institute_english)#</cfoutput>" />
						</div>
						
						<div class="label">
							<b>简拼</b>
							<input name="InstitutePinyin" id="InstitutePinyin" type="text" class="typeCode" maxlength="6" value="<cfoutput>#event.getArg('InstitutePinyin', rs_department.institute_pyidx)#</cfoutput>" />
							<p class="notice">请填写单位简称的拼音首字母, 如果保留空值, 系统将自动根据汉语拼音读音生成. 如果简称中包含多音字, 拼音首字母可能不准确.</p>
						</div>
						
						<div class="label">
							<b>办公地址</b>
							<input name="InstituteAddress" id="InstituteAddress" type="text" class="typeText" maxlength="30" value="<cfoutput>#event.getArg('InstituteAddress')#</cfoutput>" />
						</div>
						
						<hr/>
						
						<div class="lable">
							<input class="button" type="submit" value="提交" />
							<input class="button" type="reset" value="重设表格" />
						</div>
						
					</form>
					
				</div>
			</div>
		</li>
	</ul>
</div>